function [rss, wss, css, pss, kss, hss]=findss(betax,deltax,theta,barg,B)
    rss = 1/betax -1 + deltax;
    wss = (1-theta)*(rss/theta)^(theta/(theta-1));
    css = -betax*wss/(barg*B);
    pss = 1/css;
    kss = css/(rss/theta-deltax);
    hss = (rss/theta)^(1/(1-theta))*kss;
end